package com.example.tb.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
* @Description: 用户表
* @Author: yaodada
* @Date: 2023/12/25
*/
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("user")
public class User {
    // 注意属性名要与数据表中的字段名一致
    // 主键自增int(10)对应long
    @TableId(value = "uid", type = IdType.AUTO)
    private Integer uid;

    // 用户名属性varchar对应String
    private String uname;

    // 密码属性varchar对应String
    private String password;

}